var vm = new Vue({
	el:"#mbody",
	data:{
		//按钮
		startBtn:false,
		callBtn:true,
		endBtn:true,
		sendBtn:true,
		
		//文本区
		localText:false,
		remoteText:false,
		localTextarea:true,
		remoteTextarea:true,
		
		//视频流资源
		localVideo:false,
		remoteVideo:false,
		
		//视频流
		localStream:false,
		remoteStream:false,
		
		//端
		local:null,
		remote:null
	},
	methods:{
		start:function(){
			initialise(deviceObj);
		},
		call:function(){
			vm.callBtn = true;
			vm.endBtn = false;
			vm.sendBtn = false;
			
			vm.localTextarea = false;
			vm.remoteTextarea = false;
			
			addStream();
		},
		end:function(){
			vm.endBtn = true;
			vm.callBtn = false;
			vm.sendBtn = true;
			
			vm.localTextarea = true;
			vm.remoteTextarea = true;
			
			closeStream();
		},
		send:function(){
			sendData();
		}
	}
});